package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Event_Message", description = "事件消息表")
@TableName(value = "Event_Message")
public class EventMessage extends FBaseEntity implements Serializable {


    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "title")
    private String title;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "msgType")
    private String msgType;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "msgContent")
    private String msgContent;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "fromTable")
    private String fromTable;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "fromEvent")
    private String fromEvent;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "fromUserId")
    private String fromUserId;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "toUserId")
    private String toUserId;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "toRoleId")
    private String toRoleId;
    
    @ApiModelProperty("")
    @TableField(value = "recordTime")
    private Date recordTime;
    
    @ApiModelProperty("")
    @TableField(value = "sendTime")
    private Date sendTime;
    
    @ApiModelProperty("")
    @TableField(value = "sendStatus")
    private Long sendStatus;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "msgData")
    private String msgData;






}

